<div class="message info">Please input your username.</div>

<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'reset-password-form',
    'enableAjaxValidation' => true,
    'htmlOptions' => array('class' => 'clearfix',),
));
?>

<p>
    <?php echo $form->textField($model, 'username', array('class' => 'full', 'placeholder' => 'Username',)); ?>
    <?php echo $form->error($model, 'username'); ?>
</p>

<?php if (CCaptcha::checkRequirements()): ?>
<div style="float:left;">
    <?php $this->widget('CCaptcha', array('buttonLabel' => 'Refresh Image', 'buttonOptions' => array('style' => 'display:block;'))); ?>
</div>
<p>
    <?php echo $form->textField($model, 'verifyCode', array('placeholder' => 'verification code', 'class' => 'half')); ?>
    <small>Please enter the letters as they are shown in the image to the left.</small>
</p>
<?php echo $form->error($model, 'verifyCode', array('style' => 'clear:left;')); ?>
<?php endif; ?>

<p class="clearfix">
    <?php echo CHtml::submitButton('Generate new password', array('class' => 'button button-gray fr')); ?>
</p>
<?php $this->endWidget(); ?>
